package com.cps.framecommon.constant.enums;

import com.cps.framecommon.exception.BusinessException;

/**
 * @author LSW
 * @create 2021/11/29 10:19
 */
public interface ErrorCodeEnums {

    Integer getCode();

    String getMessage();

    default void toExceptionThrow() {
        throw new BusinessException(this);
    }

}
